<!DOCTYPE html>
<html>
<head>
    <title>单台成本统计清单详情</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div>
    <Card>
        <Tabs value="name5" type="card">
            <Tab-pane label="详情" name="name5">
                <table id="jqGrid3"></table>
            </Tab-pane>
        </Tabs>
    </Card>
</div>

<script>
    var moldTypeId = getQueryString("moldTypeId");
    var yearly =  getQueryString("yearly");
    /**
     * 维修履历
     */
    $(function () {
        $("#jqGrid3").Grid({
            url: '../moldType/position/cost?moldTypeId=' + moldTypeId+'&yearly='+yearly,
            jsonReader: {
                root: "contrastResult",
                page: "1",
                total: "contrastResult.length",
                records: "contrastResult.length"
            },
            height: 580,
            pager: null,
            multiselect: false,
            rowNum: 10000,
            colModel: [
                {label: '备件名称', name: 'positionName', index: 'POSITION_NAME', width: 80},
                {label: '位置号', name: 'positionNo', index: 'POSITION_NO', width: 80},
                {label: '特殊处理', name: 'positionRemark', index: 'POSITION_REMARK', width: 80},
                {label: '类型', name: 'modType', index: 'MOD_TYPE', width: 80},
                {label: '单价(元)', name: 'unitPrice', index: 'UNIT_PRICE', width: 80},
                {label: '寿命标准', name: 'lifeStandard', index: 'LIFE_STANDARD', width: 80},
                {label: '理论单台(元)', name: 'theorySingleCost', index: 'THEORY_SINGLE_COST', width: 80},
            ]
        });
    });
    let vm = new Vue({
        el: '#rrapp',
        data: {
            q: {
                name: ''
            },
            moduleArchives: {},
        },
        methods: {
            eyeFile: function (url) {
                if (url) {
                    window.open(url);
                } else {
                    alert('还未上传文件');
                }
            }
        }
    });
</script>
</body>
</html>
